package Service;

import Utils.PacketUtils;
import org.json.JSONObject;

/**
 * The type Login out.
 *
 * @author dzr
 * @version 1.0
 */
public class LoginOut {
    /**
     * The constant LOGIN_OUT.
     */
    public static final int LOGIN_OUT = -1;

    /**
     * Login out.
     *
     * @param uid the uid
     */
    public static void loginOut(int uid){
        JSONObject ret2Server = new JSONObject();
        ret2Server.put("cmd", LOGIN_OUT);
        ret2Server.put("uid", uid);
        PacketUtils.sendPacket(ret2Server);
    }
}
